import request from '@/utils/request'

// 根据手机号查询客户信息
export function getCustomerphone(phone) {
  return request({
    url: '/petHospitalController/queryCustomerByPhone?phone='+ phone,
    method: 'get',
  })
}

// 挂号就诊
export function addCustomergh(data) {
  return request({
    url: '/petHospitalController/consultation',
    method: 'post',
    data: data
  })
}

// 用户充值
export function addCustomerrecharge(data) {
  return request({
    url: '/petHospitalController/queryCustomerByPhone1',
    method: 'post',
    data: data
  })
}

// 根据医生查询就诊宠物信息
export function queryConsultationRecord(data) {
  return request({
    url: '/petHospitalController/queryConsultationRecord',
    method: 'post',
    data: data
  })
}

// 查询部门列表
export function listDeptgh(query) {
  return request({
    url: '/system/dept/listdept',
    method: 'get',
    params: query
  })
}
//查询医生列表
export function listDoctor(query) {
  return request({
    url: '/system/user/listdoctor',
    method: 'get',
    params: query
  })
}

//结束就诊，（开处方，开检查单）
export function addCustomerpetjz(data) {
  return request({
    url: '/petHospitalController/prescribing',
    method: 'post',
    data: data
  })
}

//查询处方药品列表
// 查询物资列表
export function listMateriel(query) {
  return request({
    url: '/hospital/Materiel/list',
    method: 'get',
    params: query
  })
}


//查询检查项目列表
export function listInspection(query) {
  return request({
    url: '/hospital/Inspection/list',
    method: 'get',
    params: query
  })
}


//查询待出库数据，
export function queryOutboundOrder(query) {
  return request({
    url: '/petHospitalController/queryOutboundOrder',
    method: 'get',
    params: query
  })
}


//出库结算，
export function outbound(data) {
  return request({
    url: '/petHospitalController/outbound',
    method: 'post',
    data: data
  })
}

//零售结算
export function retail(data) {
  return request({
    url: '/petHospitalController/retail',
    method: 'post',
    data: data
  })
}

